/**   
* @Title: PoetryThread.java
* @Package org.xaoyaoyao.spider.thread
* @Description: TODO
* @author xaoyaoyao
* @date Jan 25, 2019 3:39:37 PM
* @version V1.0   
*/
package org.xaoyaoyao.spider.thread;

import org.xaoyaoyao.spider.download.AbstractThread;
import org.xaoyaoyao.spider.entity.SpiderTask;
import org.xaoyaoyao.spider.redis.RedisService;
import org.xaoyaoyao.spider.util.Constants;

/**
 * @ClassName: PoetryThread
 * @Description: TODO
 * @author xaoyaoyao
 * @date Jan 25, 2019 3:39:37 PM
 * 
 */
public class PoetryThread extends AbstractThread {

	private RedisService redisService;

	public PoetryThread(RedisService redisService) {
		super(redisService);
	}

	@Override
	public void submitTaskResult(SpiderTask task) {
		redisService.lpush(Constants.SPIDER_TASK_PROCESSED, task.toString());
	}
}
